Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tainted canvas error fix #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

shivenigma
Copy link

I fixed the CORS error which caused the tainted canvas error on the situations when used with remote images. I added the crossOrigin attribute to the image element. But the remote server still needs to send proper CORS headers in order for this to work.

when loading the remote images we might encounter the tainted canvas error, I added the cross origin policy to overcome this situation. note that the remote server need to send proper access control headers in order this to work which means the remote server should allow using their images publicly or you can write a proxy to send your headers which is not legally right.
@santimacia
Copy link

It works, thank you!

@shivenigma
Copy link
Author

@santimacia I'm glad that I helped someone, this is my first open-source contribution. Even though this is a tiny fix I'm feeling achieved.

@shivenigma
Copy link
Author

any chance of this getting a merge? or do I have to improve anything with my code?

@shivenigma
Copy link
Author

I guess this repo is not maintained anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants